//全局的webDrawer方法
export function useKDrawer() {
  const kDrawerRef = ref<KDrawerrRefType | null>(null)
  const kDrawerOpen = () => kDrawerRef.value?.open()
  const kbDrawerClose = () => kDrawerRef.value?.close()
  const kDrawerBtnLoading = (show: boolean) =>
    kDrawerRef.value?.showBtnLoading(show)
  const kDrawerLoading = (show: boolean) => kDrawerRef.value?.showLoading(show)
  return {
    kDrawerRef,
    kDrawerOpen,
    kbDrawerClose,
    kDrawerBtnLoading,
    kDrawerLoading,
  }
}
